using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Configuration;
using QLKS.DTO;

namespace QLKS.DAO
{
    public class HoaDon_DAO
    {
        clsQLKS obj = new clsQLKS();

        //Lau ma hoa don moi
        public int GetMaHD()
        {
            return obj.GetMaHD();
        }

        //them hoa don
        public Boolean INSERT_HoaDon(HoaDonThanhToan_DTO hd)
        {
            return obj.INSERT_HoaDon(hd);
        }

        //cap nhat hoa don
        public Boolean UPDATE_HoaDon(HoaDonThanhToan_DTO hd)
        {
            return obj.UPDATE_HoaDon(hd);
        }

        //Xoa hoa don
        public Boolean DELETE_HoaDon(HoaDonThanhToan_DTO hd)
        {
            return obj.DELETE_HoaDon(hd);
        }

        //Lay hoa don
        public DataTable HoaDon_Load()
        {
            return obj.GetData("HoaDonThanhToan");
        }
    }
}
